package factory;

import anno.Component;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/11/29  8:36
 */

@Component("苹果")
public class Apple {
    @Resource(name="红富士")
    private String brand;

    @RequestMapping(value = "/getBrand",method = "post")
    public String getBrand(){
        return this.brand;
    }
}
